<?php

class m120528_111243_update_employee extends EDbMigration {

	public function safeUp() {
		$default = 'DEFAULT 0';
		$this->addColumn(
			'employees', 'leaveBalanceDefault', "integer $default"
		);
		$this->addColumn('employees', 'leaveBalance', "integer $default");
	}

	public function safeDown() {
		$this->dropColumn('employees', 'leaveBalanceDefault');
		$this->dropColumn('employees', 'leaveBalance');
	}

}